package com.atguigu.daijia.driver.service;

import com.atguigu.daijia.model.form.map.OrderServiceLocationForm;
import com.atguigu.daijia.model.form.map.UpdateDriverLocationForm;
import com.atguigu.daijia.model.form.map.UpdateOrderLocationForm;

import java.util.List;

public interface LocationService {


    /*
     * 开启接单服务：更新司机经纬度位置
     * */
    Boolean updateDriverLocation(UpdateDriverLocationForm updateDriverLocationForm);

    /*
     * 司机赶往代驾起始点：更新订单地址到缓存
     */
    Boolean updateOrderLocationToCache(UpdateOrderLocationForm updateOrderLocationForm);

    /*
     * 开启代驾服务：保存代驾服务订单位置
     * */
    Boolean saveOrderServiceLocation(List<OrderServiceLocationForm> orderServiceLocationFormList);
}
